INSTRUCTIONAL APPLICATIONS ONLY: USING KMS IN A SAFE AND LEGAL FASHION