enhanced speed for isDataValid, in some cases.