Refine SharedPreferences