compress java list of java object into a file with less storage and fast data access