caching queries results for code list