Serialize huge circular object graphs to file