properly keep track of last_used_in channel for keystore