_get_permissions_dict always returns the same result so it doesn't make sense to call it in every iteration of the for loop