avoid computing state if only validity is required