More cache and performance optimalizations
Improved variable naming and inline comments