I guess you could only keep the 10 last indices (times), for larger times the exponential will be very slow anyway.