optimized afterAll callback