didn't added the cache because there are many other places within the `_attach` method that is not caching during iterations, but I can change it.