I feel like it might be nice to have a micro benchmark to show this is faster. There are only about 13 types, so it's probably not to slow to blast through them in an array. I guess I'd bet on this edging out the loop?