Register master key in the right place