Performance improvements when applying the nearest poi