The big part was the experience I gained during the last 9 years. Coding is never ending learning process :)
And in terms of risk, it was something that could break potentially everything but if it did, it would be noticeable immediately. Other ways to speed up things might be riskier and require more work. But should be done, if required :)