AwsS3: Detect stream size instead of relying on the config settings.