compress the cache values so they fit