title: Generating Braintree client token in advance
body: <p>I'm looking to reduce the response time for a payment page using the Braintree Drop-In UI (JS v3 SDK).</p>
  
  <p>When a user visits the payment page, I'm generating the client token in PHP as per the docs here:</p>
  
  <p><a href="https://developers.braintreepayments.com/reference/request/client-token/generate/php" rel="nofollow noreferrer">https://developers.braintreepayments.com/reference/request/client-token/generate/php</a></p>
  
  <p>This request seems to be slowing things down with the token sometimes taking a while to generate.</p>
  
  <p>I was wondering if there are any issues with generating tokens in advance and storing them on my server to speed things up?</p>
  
  <p>I'm aware that tokens can not be re-used from this question here:</p>
  
  <p><a href="https://stackoverflow.com/questions/36377218/braintree-client-token-expiration">Braintree client token expiration</a></p>
  
  <p>Is anyone aware of any issues as long as the token is discarded from the server once used. I can't seem to find any details of expiration of client tokens in the Braintree docs.</p>
  
  <p>Thanks.</p>