This should avoid the issue of having lots of unused entries in caches if the GUI size is changed multiple times.