Cache calculated values when we know they won't change.

We frequently get the name and name_plural properties of an API
resource. In the case where a resource doesn't explicitly set them, we
calculate them, and we do this every time it's accessed, even though
it'll never change. Instead, cache these values and only calculate them
once.