Separate intra transform coding to luma and chroma functions.
Split final cost to luma and chroma functions.
Separate sad intra search from rdo search.
Avoid regenerating reference pixels for every rdo mode.