Added cache for path pattern tokenization

Issue: SPR-11258