Restrict optimization