Use a switch table for enum->string conversion, which avoids runtime memory allocation.