Simplify shared preferences saving