Prevent replay attacks by storing used nonces.