Add size optimisation patch

@adfad666 suggested I try this in a nightly... so here ya go.

http://review.cyanogenmod.org/#/c/51093/