Optimal local well-posedness theory for the kinetic wave equation