Using & 0x07 (0b111) instead of % 8 so save CPU cycles.

Logical AND uses exactly 1 CPU cycle according to the AVR Instruction Set.
Modulo consists of several commands including division and remainder which takes a lot more cpu cycles