Could you estimate cost savings with a faster language rewrite?
Based on the programming language energy usage benchmark, Java is 32x faster than RoR.
Let's say you could you replace 32 instances with Java, that might help with the reserved instance coat as well.