improved bre_dispose performance