First implementation of the DIA optimization