We could write the data to a tempfile, and then stream the tempfile to S3.  Pretty straightforward swap.