Work with S3 instead of files.