Fix ugly GPU performance drop by CAF-ifying memory allocations and Krait retention.

Signed-off-by: Tk-Glitch <Ti3noU@gmail.com>