DNN-5909 GetFoldersByPermissions Performance Improvement