Just always cache. Even with a variety of modules all of which create regular expressions the cost of keeping a few stale objects around is less than all this hot and cold play.