protected function validateValueSize($value){

		// Serialize the value being saved to get a byte-stream string.
		// Strlen returns number of bytes in a string.
		$size = strlen(serialize($value));

		// The limit for values is 4 MB.
		$allowed = 1024 * 1024 * 4;
		if($size > $allowed){

			return false;
		}

		return true;
	}