Global JS objects and queries

Hello, I would appreciate it if there were global JS objects and queries.
I need them for central utility functions or look-up tables that I want to use in select widgets on multiple pages. A central permission functionality would also be conceivable.
Currently, I can only store data in “appsmith.store” and have to copy the queries and JS objects repeatedly. Especially for the objects, changes afterwards are complex, as I have to replicate them on all pages. (And having the same code multiple times is a horror for me as a developer.)