mali_platform: Better Algorithm