1. A computer-implemented method comprising: obtaining a script to be executed, the script comprising instructions for a plurality of asynchronous operations, wherein each asynchronous operation includes a request calling for a result; performing a plurality of provisional iterations of the script, wherein each provisional iteration of the script comprises performing at least one of the plurality of asynchronous operations, obtaining a result for the at least one of the plurality of asynchronous operations, and caching the result in a storage device; determining whether results for each of the plurality of asynchronous operations has been cached in the storage device; and in response to determining that the results for each of the plurality of asynchronous operations has been stored in the storage device, performing a final iteration of the script using the cached results stored in the storage device.