optimize intra pred