improves legacy route matchers performance