Save CPU cycles from check_leaf()