Sorry! I don't have the answer... But here is what I did to retain your PW.
Hope this will prevent this kind of accident
A piece of tape adhesive to the back or the bottom of the device/case. It has a hint of the PW - or the PW it self if the data is not extreme important