1. An apparatus comprising: at least one processor; a memory coupled to the at least one processor; and a query refresher residing in the memory and executed by the at least one processor, the query refresher determining whether a query to be optimized differs only in data type from a stored optimized query, and if so, the query refresher retrieves the stored optimized query and refreshes the stored optimized query to reflect a change in data type.