[Issue 9316] performance issue when writing a high number of large objects