Change sharePrefs commit to apply for performance

SharedPrefs commit should only be used when a return value is needed.

- Change all SharedPrefs commit() to apply() where necessary.