Introduce Persistent for scala