1. A method for executing database commands, the method comprising: receiving a first request to execute a first command; executing the first command according to a first plan; while executing the first command according to the first plan, capturing first information, wherein the first information is related to the execution of the first command according to the first plan; determining that the first command matches one or more pre-defined criteria; in response to determining that the first command matches one or more pre-defined criteria, persistently recording the first information; receiving a second request to execute a second command; in response to the second request: determining that the second command is equivalent to the first command; and executing the second command in a manner that is based, at least in part, on the first information.