Add scheduled query precompute functionality