[TASK] Revert "Remove runtime cache and early return from TemplatePaths"