Allow only saving the sync_cache data that has actually changed.

Mostly for improved Mongo driver performance.