Yep, this is the natural way to go, especially considering the possibility of parallel computing and the importance of cache locality, etc.