Changed the way responses are done to prevent OOM for downloading large files.