Java classes designed with optimizable object layout in mind