Layer cache now LRU
WV-1125: Cache invalidated if palette changed