Named register variables with ternary select avoids both LUT and array indexing
4 uniform reads + 8 branches = worst of both worlds. Worse than baseline.