Make ircd.storage keep a cache and write back every 5 sec

This prevents performance problems due to pickling and unpickling a thing thousands of times