Only access active pile when needed