Minor cleanup of S3 caching script