len caching