Entrope generator optimization