An apparatus includes a thermoelectric cooler having a first set of one or more metal electrodes, a second set of one or more metal electrodes, and one or more doped semiconductor members. Each member physically joins a corresponding one electrode of the first set to a corresponding one electrode of the second set. Each member has a cross-sectional area that increases along a path from the one metal electrode of the first set to the one metal electrode of the second set.