Bug 1039940: serialisation of objects for webservice responses is extremely slow