init the regexPatternCache if it doesn't exist