Implement deduplication of exactly_once messages