Added glob caching for apparently expensive regexp execution