Peer looping messages detection using message signature cache