Added Regex caching