Slightly more optimizations over TheYogWog. Only a little, still improveable by a few seconds