[minor] allow custom temper to be fed to optimize, do not rely on pipe