1. A computer-implemented method comprising: obtaining a script to be executed, the script comprising instructions for an asynchronous operation, wherein the asynchronous operation includes a request calling for a result; performing a provisional iteration of the script, wherein the provisional iteration of the script is associated with at least a portion of the script, and wherein the provisional iteration of the script obtains and saves the result as a cached result; and thereafter, performing a final iteration of the script using the cached result.