Parse RTM with optimizations