BZ-1155852 - Performance improvement suggestion for getRuntimeEngine()

(cherry picked from commit 50c4dd1cb621d4480ce731fb22ed6496b570c194)
BZ-1155852 - Performance improvement suggestion for getRuntimeEngine()

(cherry picked from commit b3a586aa0da9748c472f6a724f0297d17b91d227)