Improve document storage structure.