updated cache logic