[TASK] Improve performance through internal caches

This set of commits targets methods repeatedly used by other methods, some of which perform considerable recursive operations. Improves performance especially on large pages in the BE, most noticeable on the first pageload of the "page" module right after clearing all caches.