And thanks, I'll take a look at pa_package_root_folder_map.
The url parameter is optional and if let away defaults to all package instances (of the whole site at this point). I think that's good enough in most occasions and at least the query should be *fast* 😊