Adding key deposit retention and reclaimation logic.