[2/2] Improve led availability checking and caching.

* Depends on related frameworks/base change.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>