Can I filter tags used only by public posts?

Hello!

It looks like I can filter posts by tag, but not the other way around. I want to list all tags that are used only by public posts. I’m sure I could loop over all tags, and then query for just public posts inside the loop, but that will be very inefficient even if I limit the inner get (of posts) to 1. It becomes a N + 1 SELECT problem.

Is there anything I’m missing?