optimization: compiling all regexs