Performance improvements

Performance improvements to libfte that result in ~100x speedup for native bytecode and roughly a 10x speedup for emscripten-compiled libfte.