prevent change config file every time on template resource call.