Dark matter and the galactic UV excess