LPS-51280 Create an index to avoid recheck if contains resource permission. If we have 1000 subscriptions it will only check once.