I got it. Thanks for the clarification.
I'm afraid there's no way to detect a field is closed or open, especially in different context (classic or block editor).
At the moment, the queries when page loads are minimal as they query only selected items. I don't think that's a performance bottle neck.