Compile the RE only once.

Eg. make the compile operation useful, performance-wise.