now checking whether id is in cache