Optimization of Dynamic Query Evaluation Plans