1. A method, comprising: when a serialization cache does not store one or more referenced objects, performing: storing a serialized byte stream for the one or more referenced objects in the serialization cache; and when one or more immutable objects are provided inline with one or more primitive objects in the serialized byte stream performing at least one of: storing a first form of the serialized byte stream in the serialization cache in which the one or more immutable objects are inline with the one or more primitive objects; and storing a second form of the serialized byte stream in the serialization cache in which the one or more immutable objects are cached separately from the one or more primitive objects.