Sounds like you need a totally different type of bike. Even if you could tweak the motor to keep assisting until 40km/h, you'd still have to be putting in a good amount of effort yourself to achieve that going uphill unless you also tweaked the assist level above 250W.
More assistance plus a...