Significantly cut memory and SQL queries when reloading diffs See merge request gitlab-org/gitlab-ce!22725