1. A method for executing voice applications to perform a voice-based function, the method comprising: receiving a first request for a document; retrieving the document in response to the first request; parsing the document to create a parse tree, the parse tree including an XML node; creating script code from the parse tree; translating the script code to bytecode segments; replacing the XML node with script code, thereby consuming part of the parse tree to create a reduced parse tree; storing the reduced parse tree in a cache for subsequent retrieval in response to a second request for the document, the reduced parse tree configured for use to perform the voice-based function; storing the bytecode segments in a cache for subsequent execution to perform the voice-based function receiving the second request to retrieve the document: in response to the second request, determining whether bytecode corresponding to the document is stored in a cache; and responsive to determining that bytecode corresponding to the document is already stored in the cache: bypassing the retrieving, parsing, creating, replacing, translating and storing steps associated with the second request; and executing the cached bytecode.