Also collect statistics about serialization