You can use the plugin data folder to store files, including user preferences.
You can use this light weight in memory library for performance http://lokijs.org