The technique of grabbing the last 20 records and picking the latest
non-NULL latency/BW from those was too simplistic. With latency measurements much more frequent than BW measurements, we often never got a valid BW because we didn't go back far enough. So now just do two queries for the most recent non-NULL value of each. This could probably be done in a single query by joining the table with itself...