Add methods to get optimized plan from LocalExecutor