I want to store a data (that should be available to WordPress environment)(not to be stored in database) that should not be affected after either WordPress update or any other plugin update. Is it possible? If yes, how to do that.

I want to store data in form of associative array & use it in same format.
This array should be accessible globally. (Don't forget, this should not be affected after either WordPress update or any other plugin update).