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

* This continues the work done in frameworks, but there we catch the result and store it into a system variable,
  here we just cache the result after first method invokation. This will speed up toggling after first use.

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