updating nonce logic to work in high load, distributed settings