add flag to know if previously returned result was from the cache