Shim for WeakMap with non-leaky O(1) lookup time