1. A non-transitory computer-readable storage medium having stored thereon instructions that, upon execution by a computing device, cause the computing device to at least: initiate processing of an invocation of an application programming interface; associate a first identifier with a thread of execution performing at least one function of the application programming interface; create a second query from a first query, the first query corresponding to performing the at least one function of the application programming interface, the second query comprising the first identifier, the second query configured to produce a same result upon execution as the first query; and cause the second query to be executed.