Implement flushing of file blocks to Amazon S3.