serialization to cache data implemented