check if existing cached instance matches as_of before fetching from db