added simple caching for map slices