Re-implemented Contributions serialisation

for performance improvements