properly cache lookups in cppyy.gbl