The RAP5 should preserve configuration between power down:up events. I have run RAP-5's on battery packs many times and thus the power comes and goes as I switch on-off the battery pack.
When you say factory default, the embedded WEBUI asks you for the Master controller IP address again?