Is there a way to do this using your CPU/GPU that would be faster than the ~6 seconds that the website takes?
1. Convert the code to another programming language which allow high performance (such as C++) and GPU usage.
2. Search similar tool which run on your computer rather than on your browser.