Wrap rpc protocol in zlib stream to reduce bandwidth.