optimize block graph stats class