Elide validation check when not compiled