alternative Maxwell-density

could one imagine to rewrite the Maxwell-density such that it contains a second derivative of the 4-potential \(A^\mu\) instead of a square of first derivatives \(F_{\mu\nu}F^{\mu\nu}\)? is the resulting expression still gauge-invariant?