Replace `i * 8 + j` with `(i << 3) + j` while we are here in bit twiddly land.