1. A method comprising: determining, by an optimizer of a first database management system (DBMS) running on a first computer system having a first set of computing resources, that with respect to the first set of computing resources a first query access plan configured for executing a query satisfies a set of query optimization criteria; determining that with respect to a second set of computing resources the first query access plan fails a set of preliminary criteria; generating, in response to the failure determination, a second query access plan configured for executing the query; and determining, prior to receiving, by a second DBMS running on a second computer system having the second set of computing resources, a first request to execute the query, that with respect to the second set of computing resources the second query access plan satisfies the set of query optimization criteria.