Simplifying S3InputStream