DroidKit memory leak optimizations