Cache query computations