Massively overhaul serialization to decrease file count