As suggested above, using a logged cache vs a simple cache would be better than doing checks all over the place.