fixes bug 994474 - event_data_latest() is too slow