a performance fix for xmlcache