Rework the way we synchronize the artifacts to avoid having an enormous
Hibernate session.

Close #26