add encryptDoc, decryptDoc, secure search index in localStorage