DNN-4537 Optimize Indexes on Permissions tables