How to use RealmDB instead of Async Storage for Local caching?

RealmDB instead of Async Storage for Local caching
I want to use the RealmDB instead of AsyncStorage for local caching. The major reason behind that is to encrypt the data for maintaining the privacy. If you have any solution regarding this then please share.


[SDK Version]
3.1.16