Merge "SharedPreferencesImpl: Avoid pointless allocation during apply."