optimize whirlpool