Tried to spead up hand result parsing by reading the entire file into an array rather than reading line by line. Still need to test if it has any impact.
Changes from last commit didn't help so I've reversed them.