This could be improved by a seek.