Improved HashingUtil