More efficient file size in s3

This closes #50 and replaces #52 which was too difficult to merge