Saving and loading embbeddings to file?

Hi, I’m trying to use DocArrayInMemorySearch created by from_documents from by OpenAIEmbeddings. I’m concerned that openai embeddings are retrieved each time the constructor is called, when I restart my process. Is there a way to save embeddings in a file and initalize DocArrayInMemorySearch from the file, instead of expensive API calls?