Avoid buffer change while encrypting data
Rename buf_for_compress to buf_for_compress_encrypt