compress result of binary queries using zlib