go back and create a Tempfile in ::from_hash, apparently, the write(file.read) is not a memory issue.