Make fields transient that are not needed to represent the object.