Added near cache to ReplicatedMap and made ClientNearCache a bit more generic