Photonic frequency engineering for efficient thermal energy and computation hardware