[Bug 8007] Add option for restricting max entry size