WeakHashCache small optimization