Document storage controller