Universal optimization batch processing