save pw_cost parameter directly and calculate scrypt N parameter at runtime