How to migrate to native storage from local storage

We have been using local storage to save data for a long time. We want to migrate to native storage now.

I am sure the best way to do it. This is what I am thinking to do,

  1. Add the Cordova native storage plugin.
  2. Copy local storage to native storage on app start (if it is not already copied).
  3. Use native storage instead of local storage in the code.

Is there an easy way to do this? May be a plugin to do the migration?