Still needs way more optimization but it *seems* slightly better. I'm going to bed for the night though.