lowered number of queries with the use of cookies