Optimize parsing, should take seconds instead of minutes to parse 1MB file (at least in the simulator)