phase2: implement tree expiry, use CONFIG_AUTOREMOVE