refactored membership fetching into bulk fetching, 50-100% speed increase