Merge "config: Speed up config template lookup"