By making the buffer part of the zstd context structure, one malloc/free can be removed from the compression.