optimize: group insert