Currently on encrypted message send/receive the shared secret is regenerated every single time. This is the heaviest crypto operation happening, and for specific users, produces the same result every time. It'd make more sense to cache these keys in memory upon generation, and grab them from there as needed.
Currently on encrypted message send/receive the shared secret is regenerated every single time. This is the heaviest crypto operation happening, and for specific users, produces the same result every time. It'd make more sense to cache these keys in memory upon generation, and grab them from there as needed.