compress when writing to s3