Limit viewable document size to 5kb