Add support for persisting to S3.