Reduced the number of requests made in S3IO.write() to two