Added Feature #8515: Speed up tslib_cObj->getTreeList by caching its results