Added len to cache
Added len to hashing