use  phash2 instead update counter to prevent lock contention