adding caching to slice containers