Hhhmm that's a bit strange but I suppose this can work. Please rename this to "roleCache", I think it looks nicer :). And add one test please!