Generate and delete master key