ISPN-4678 Trim down ExpandableMarshalledValueByteStream to the actual data length before storing in cache