Optimization of process variables for enhanced lactic