Avoid multiple calls to getters.