optimizing directive processor