Fix performance regression related to implied role lookups