[UPDATE] cache lengths.