Implement and test caching seralized object