move where we gc dsa data, improve dsa key checking