Compress cached metadata with zlib