Fixed issue with progress input stream
Added .apply() functionality to the SecurePreferences