shrinking the serialized object, simplify the counter monitoring