WIP: Not working yet. Auto memory management - spilling to disk when out of mem