Cache result of Tool::getNamespaces from API