Merging streams before sending to s3