In some cases our previous performance improvements could bite us

if (used == len) would basically always be true so yeah.. Quiting too early in some cases.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>