added some more calculations for QueryCache