Update keys chain, cleaning debug logs