Efficient machine unlearning with minimax optimality