Manual Code Tuning #3

Loop unswitching
Manual Code Tuning #4

Replacing calculations that result in a constant