in reply to CGI and static data...

BerkeleyDB may be a good solution for you, in conjunction with Storable for serialization. Assuming that your entities don't have to point to each other (you don't say whether there is advanced intra-object connection or not), this has several advantages: