Not sure 80dbb414bfa12729330fbf493e4e55871fac1901 will speed up since requires more CPU cache to store the data. I think calculating the shift will be faster than looking up that in the array.