OK prepare yourself for a way cool method.

1. Header
2. Index of data items and their sizes
3. Entries begin here, and they refer to data items by ID
4. Data items follow in a big mess

Just coding it up now (this looks cool )