Acceleration of the Stochastic Analytic Continuation Method via an Orthogonal Polynomial Representation of the Spectral Function