Fast heat flux modulation at the nanoscale