Access reference caches only through new function get_cached_refs()