optimize encryption
retry 3 times before save to mongo