1. A computer-implemented method, comprising: during a first execution of a statement from statements in a program that is executed against a database, preparing the statement to generate metadata; and dynamically executing the statement; and during a second execution of the statement, in response to determining that the statement is bound to the database, loading information from an execution file that describes the statement that was dynamically executed and that describes the metadata for the statement; and statically executing the statement that was dynamically executed during the first execution using the loaded information and an authorization identifier (ID) that does not have access to base tables in the database; and in response to determining that the statement is not bound to the database, executing the statement dynamically using an authorization ID that has access to base tables in the database.