Do query plans take account of what data is in memory?