Initialize templates lazily upon first use