This creates a new serialized structure CKeyMetadata, and stores it alongside each newly created key. This data is used to calculate a whole-wallet birthday.
Wallet rescan is optimized using this information, to skip reading and scanning blocks earlier than the wallet birthday.