Checking repository access through App user installation

I’m building a GitHub App and I need to check if a user can access a given repository through the application. Retrieving the list of user installations (using and then fetching the list of accessible repositories for each of those installations (using works, but it’s obviously far from optimal. Is there a better, more direct, way to check for access?