Not sure why you want a 40 amp circuit to feed a 20+ amp load, a 10 gauge 30 amp circuit should be adequate.
Voltage drop doesn't factor in until you exceed 50', so with nearly no voltage drop, amperage isn't going to increase, so I would install a 30 amp circuit.
Never hurts to be larger, maybe...