well over 20kms thermo fans dont do anything, so it cannot be that.
maybe the radiator is blocked and not flowing as much? or water pump? or belt? sounds like the more you rev, it the more it flows?
what about idle? does it overheat when idleing? does it have the same problem in any gear at low revs?
i diddnt really solve anything but thats what i would check.