[PATCH] avoid some expensive tws_check_update calls