1. A computer implemented method of managing a statement pool, the method comprising: tracking usage of a plurality of statements in a statement pool utilized by a database; selectively optimizing at least one of the statements from the statement pool based upon the tracked usage of the plurality of statements using at least one processor; after selectively optimizing the statement, processing a request to access an unoptimized representation of the statement by accessing an optimized representation of the statement; and executing a database query on the database using the optimized representation of the statement.