Move cache check to the top and make it count