Implement persistent storage of weight data.