Add better logging to enable better debugging (getSaltedHash has performance problems)