turning off overflow checking doubles the speed, so only factor of 3 away now