fix run out of memory when receiving large files from Calibre