Simplify S3 helper.
Simplify S3 helper.

Use S3 library to fetch the content length.
Remove unused memoization code.

travis-ci/travis-logs,final-ci/travis-logs,travis-ci/travis-logs,final-ci/travis-logs