Significantly faster, but much larger memory consumption
Few more small optimizations. Doubt it will get much faster w/o large rewrite.