Use setImmediate

Also removed the useless async version of getSalt.