A modified gyrotron cavity is proposed. It is shown that an optimized
profile of the cavity wall allows decreasing the maximal thermal load
on the wall while the electron efficiency stays high, which makes it p
ossible to achieve higher magnitudes of output gyrotron power.