improve efficiency of the rebuild_bloom command