We used to use std containers in Crypto, which makes it expensive to copy. Now we store sessions using immer map and immer box, and we only need to copy those that changed and keep the rest. This should largely reduce the time needed in each sync cycle.
Type: fix