Speeded up generation of larger texts via caching