Non-persistent way to use arrays as database