compress memory cache