This is still running slow for me with larger numbers. Any other optimizations I can add to go a bit faster?