Implement random calling of optimized OpenDB with a possible optional env var