timeseries.io.cache: only extend span if needed