BUGFIX: correct localcache handling