Is there a way to speed up password hashing? I am setting up a system that migrates users from an external source and have determined the most time expensive part is when the UsersService _setPasswordOnUserRecord method hashes the password

$hash = craft()-&gt;security-&gt;hashPassword($user-&gt;newPassword);


This is taking about 2 secs where the rest of the operation for saving a user is about .2 sec. There are close to 10k users to it's really adding up! Is there any way to use a faster type of hash or bypass the hashing, or am I out of luck?

example:

    $user = new UserModel;

    $user-&gt;firstName    = "First";
    $user-&gt;lastName     = 'last';
    $user-&gt;newPassword  = '123456';
    $user-&gt;email        = 'email@email.com';
    $user-&gt;username     = 'username';




    $wasSaved = craft()-&gt;users-&gt;saveUser($user);
There is a general config setting for this:

https://craftcms.com/docs/config-settings#blowfishHashCost

Setting this to the minimum value:

'blowfishHashCost' =&gt; 4


made the hashing time negligible.