adding support for cache & thread for Max pain calculation - vast
performace improvement from 1.5hrs to 5 min for 500+ stocks