Retroarch Android Mame: NVram, and Dipswitch save, hotkeys?

I am quite new to Retroarch and am impressed by the emulation accuracy and speed on my Nvidia Shield.

This might be a stupid question but how do I get Mame in Retroarch android to save Nvram and dipswitch settings?

I don’t even know which folders it uses for Nvram and Dipswitch settings, and they seem to reset everytime I load a game anyways.

I came across this problem because I was not going to wait 10 minutes everytime I load Viper phase one to go through the update process of that game.

But this problem seems to affect every game.

While I am at it, is there a resource that tells me what the default keys to do things like fps display, mame menu, reset game etc are for the mame core and how I reconfigure them, as well as how to configure the keys for multiple players with external controllers?

Any help is greatly appreciated! Thank you!