See my answer here: Julia integral calculation - community module or own module? - #15 by stevengj
…though if your polynomials change matters are more difficult.
Could you explain more of the context here? Where do your integrals and polynomials come from?