Optimize variable declaration
Lookup partials when undefined