Remove old preferences keys on upgrade

This may fix a slow start of the application