Made CacheItem generic to allow non-binary serialization and prevent some casts.