Made `asUriTemplate` and `names` constant to avoid unnecessary recomputation