Remove logging
Cache deployments from the database, clean up pref keys, cache prefs