So you want to de-dup? It is safe to assume that the (u, p) pairs are different from each other.