Anti spark lacquer for homogenization of magnetic field