Optimise statically allocated buffers usage for thead model
Open, HighPublic

Description

In the current implementation, secure storage uses three statically allocated buffers to store a message, and uses multiple memory copy operations. It is possible to remove at least one of the intermediate buffers and replace it with callbacks in order to optimize the run-time memory usage of the service.