optimization: do not merge a cache against itself

During the process of saving a cache, it will be merged against the
version present in CacheCache if any. Quite often, the version in
CacheCache is the cache object itself, and a merge is attempted against
itself.