encoding data for caching