Move compilation of some regexes to init time