Reference counting in Cache