Removed superfluos memory allocations in kiro server and client