Async writes to shared prefs