Assume that there is a class which contains some data and calculates some results given queries, and the queries take a relatively large amount of time.
An example cl