Removed unnecessary double-check for cache length value