public existsPlan(plan as QueryPlanBase) as Boolean:
Tests plan existence through the optimized memory plan path.