Convert to seperate insert data structure. previous shared insert data structure needs lock, which is very slow.