ref #93: fix binary processing bug that was slowing everything down by a lot

seriously, a lot. this should only emit 1 query per 10k parts instead of 10k queries. also, don't try to delete parts that were already deleted, another speedup.