In the past I’ve hired engineers on a per hour basis; we agree on the hour count while we plan the tasks.
Sometimes it takes them more hours than we planned, sometimes less, but our contract stays the same. There is nothing moral/amoral around them being efficient or padding their estimates IMHO.