Try to optimize DbSegmentPublisher.publishSegment