There's a query to check to which pages a variant is related (full page or macro). The performances of it look low and could be improved.
It's not urgent because this is only on-demand and not used every day.