implemented single regex disk caching mechanism