Lazy evaluation/instantation for templates