Some tweaks to optimize number of requests to braintree API.