Yes, optimization is only done on materialization.