Regexp optimization when parsing the configuration file.