1. A method of managing a statement pool, the method comprising: (a) accessing an unoptimized representation of statement among a plurality of statements in a statement pool utilized by a database; (b) generating an optimized representation of the statement from the unoptimized representation of the statement; and (c) replacing the unoptimized representation of the statement with the optimized representation of the statement in the statement pool.