Avoid unnecessary locality queries