Add use of an LRU cache to check for known layergroup configs

Closes #77
NOTE: previous commit was about #77 too, wrong ticket ref in there..