improve performance

of merging stage while importing data