CORE-5614: added support for encrypting and decrypting access and refresh tokens