Can i keep collections in memory

Hi,

i need develop a plugin and i would like to know if it´s possible store vars to use it when plugin is called.

Thanks!!