Split the single loop that initializes both named
ANSI colors (0–7) and the remaining 256-color indices
into two separate loops.
The first loop sets both numeric and name keys for
the named ANSI colors without per-iteration checks,
and the second loop sets only numeric keys for the
remaining indices.