Genome streamlining and chemical defense in a coral reef symbiosis