Added check_contributing_state function to cache