simple query caching,
first comparison
refactoring