Short to medium term optimization of dead-end ultrafiltration by