Organization and optimization of RDMP engine