Store settings in properties and load them at startup. This should avoid setting all parameters again after an update.