simplify WeakCache