Use cached length

EVEN MORE OPTIMIZED NOW