optimize coprocessor index building
remove unused lines