Improve led availability check and caching.