distance = cache.getRecordBuffer(id1.getIntegerID(), id2.getIntegerID()).getFloat();
}
catch(IOException e) {
throw new RuntimeException("Read error when loading distance " + id1 + "," + id2 + " from cache file.", e);
}
return new FloatDistance(distance);
}