Refactor file download logic to use streams for improved performance - Replaced writeFile with createWriteStream and pipeline for handling file downloads. - Updated the downloadMappedFiles function to handle response as a ReadableStream. - Removed unnecessary check for response data type after download.