Update Preferences.java

put disk access to background thread.