setting models session property during query cache deserialze, created forEachQuery method in QueryCache