your 2 "custom layouts" are stored in prefs,
but as Andrew points out the saved layouts are separate files.
similar thing goes for keyboard layout.
your keyboard layout WILL be stored in your prefs,
it should ALSO be saved as a separate file, which is what happens when you SAVE your layout.
nick