Thread safety fix for parser

Thread safety change: replaced an effectively const function static std::map with a file static const std::vector which is pre-sorted.