fine-tune template caching and cache per prefixes set. prefixes never change so there's no need to reiterate them costly every time.