Improved discretization of the Kardar-Parisi-Zhang equation