Cooling is a primary consideration before mounting into a protective housing as it is avoidance of stray light (no reflecting housing parts near the lens). The protective glass must not cause reflections. Ideally, the lens and LEDs should have separate protective glasses.