avoid unnecessary array creation in ESBulkIndexTask