The MLE is minimax optimal for LGC