Switched to reading the entire file into a buffer at the start.\nThis speeds it up a TON (like 100x).
Attach a file by drag & drop or click to upload