Rule policy consumes a lot of CPU at inference time
### Rasa Open Source version

2.8.21

### Rasa SDK version

 _No response_ 

### Rasa X version

 _No response_ 

### Python version

3.8

### What operating system are you using?

Linux

### What happened?

Rule Policy consumes a lot of CPU cycles when there are a lot of rules

### Command / Request

Run this [bot](https://github.com/RasaHQ/rule_policy_spike_cpu).

### Relevant log output

 _No response_
diff --git a/rasa/core/policies/rule_policy.py b/rasa/core/policies/rule_policy.py
index 815bcd2f58b..7e24676f0bd 100644
--- a/rasa/core/policies/rule_policy.py
+++ b/rasa/core/policies/rule_policy.py
@@ -835,7 +835,7 @@ class RulePolicy(MemoizationPolicy):
     @staticmethod
     # This function is called a lot (e.g. for checking contradictions) so we cache
     # its results.
-    @functools.lru_cache(maxsize=1000)
+    @functools.lru_cache(maxsize=100000)
     def _rule_key_to_state(rule_key: Text) -> List[State]:
         return json.loads(rule_key)
 
['rasa/core/policies/rule_policy.py']