Move regexp instantiation, and instantiate them once