Assume not having previous experience in it myself nor having access to someone else's experience, how would you approach that problem?
Focus on experimenting and dedicate time to reading the code to understand the system and the actual low-level decisions. Maybe try to create a couple of PoCs (Proof of concept) to see how you can solve the problem with different approaches. And once you have that data, you can decide on the path forward.