Workaround for a memory leak in current.response.s3