Facilitate toggling validation code at users request, without extra performance penalties.