Add a comment above these lines, like "Updating cached values for easy access" or something, otherwise this isn't clear.