Only save properties when values change