small optimization of Whirlpool