KAA-280: Remove unnecessary copying in the user submodule