Actually, it could even be interesting to write it in non volatile memory (like Flash ROM) on devices that do have some. This should be done in board-specific code, though...