Compiled patterns are kept in a static variable which means they will be overwritten as soon as another pattern is compiled.