optimized and memory bug fixed to get dead fast (~100k reqs/s in my
notepad)