For each layer, the regex is executed in order to find the value of each path variable. It is possible that a lot of regex would be shared between layers. The purpose of this issue is to improve the HttpRouterExecutor and the HttpLayer so the executed regex can be saved and not executed again in an event handling.