Yes, just implement this in lseries. A generator is *exactly* the caching that you are looking for.