Caching rexpdist random function - 50% exp optimalization.