Speed up getting the last entry.