twrp optimizations