cacheing compiled integrand in quadpack functions



hello ray,

the quadpack functions (quad_qags etc) call COMPILE on the
integrand. i'm working on a problem in which i'd like to evaluate
the integrand repeatedly for different limits of integration,
so it seems like the integrand only needs to be compiled once.
does it seem reasonable and practical to put the compiled
integrand into a hash table with the integrand as the key?
the idea is that the integrand would be compiled only if
a table lookup yields nil.

thanks for any advice,
robert