No need for cache if we are just setting the attributesKey now. I will leave the getAttributesKey function in there for ease of extensibility later if there are changes to the way this is handled, a function is a good DRY way to assure easier updates.