We have a requirement to restrict user access to certain pages within PowerApps.
The users are part of various security groups which again are part of a single SG.
Thus, there are multiple layers of Security Groups we need to access to get the user data.
Currently, we are accessing the SGs using nested ForAll loops in the OnStart property as below.

This is an intensive operation and hence the app takes approx. 2 min to load.
Is there a way to enhance the performance of the app?
Thanks in advance