If you want to understand how to optimize hashrate, check my new post:
https://steemit.com/jsecoin/@bitdroid/jsecoin-platform-technical-analysis-and-how-to-maximize-profits
It's not gonna work with self-mining, because of the imposed limits on the platform, but it might maximize profits on websites with medium size traffic.