Split s3 upload to multiple statements for easier debugging