The keys aren't in their memory as the keys never leave your device. All signing happens on your client (eg Smartphone).