Restore idempotency to quiz question and key generation