Improve the running time of the concatenation when merging envelopes.