Save scratchpad contents in prefs storage