Enable validation checks (can be disabled in production for performance)
bool enableValidation = true;