OK Couple of things:
1. I would be writing these "small objects" to a binary file as you read/parse them so that if this happens (or a power outage or..) your program can just pick up where it left...