optimization: remove repeated stringify
Merge pull request #657 from compcj/common

optimization: remove repeated stringify in encryption