proper way to cache the stringTemplate getters