Why not use the streaming method?  I'm guessing the file() call writes to a temp file somewhere and we will end up with them somewhere?