fix secret key security problems.