Let $f:\mathbb{R}^n \to \mathbb{R}$. Let $x_0 \in \mathbb{R}^n$. Assume $n-1$ partials exist in some open ball containing $x_0$ and are continuous at $x_0$, and the remaining $1$ partial is assumed only to exist at $x_0$. A well known result states that this implies $f$ is differentiable at $x_0$.
My question is whether or not this can be strengthened. Can we replace "$n-1"$ in the above theorem with some function $g(n)$ "smaller" than $n-1$, and replace "remaining $1$ partial" with "remaining $n-g(n)$ partials"?
Feel free to play with assumptions slightly. For instance, you can replace "continuous at $x_0$" with "continuous at $x_0$ and in some open ball containing $x_0$".