Removed superfluous memory allocations in kiro server and client