Fixing a bug which prevented the cache store from being serialized.