#description implement a cache for sql queries previous lookup shouldn't be repeated. it is memoization?