serialize for too big generated classfiles