[ruby-core:111249] [Ruby master Feature#19104] Introduce the cache-based optimization for Regexp matching