Flush cached_level_maps every 1000 blocks during re-indexing