The UK also did something similar with rubber - originally it was a product closely guarded by Brazil but a "bio-pirate" stole samples and they were then planted widely within the Empire - with Malaya going on to become the top producer:
https://en.wikipedia.org/wiki/Henry_Wickham_(explorer)