i don't know math
Made the evaled code more isolated and made a cache.