Limit expanded content to 25kB per revision

Change-Id: Ifd17240ee2435c6cc1d8a31d1e1ba284082b097d
(cherry picked from commit 69275f787a307d35c2f8ed6ae46f70bdd8903a78)