simplify slice caching