add basic caching for topic->regex transform