Resolve switch cases without look aheah look-up. Fixes #12583
Prevent multiple threads to populate the keyword table