After this command:
adb shell "cmd package bg-dexopt-job"
Your adb prompt will looks like in idle, but in a second plan, your device will start to rebuild the cache. After a 15 min with you device connected, the adb will show "success".
It looks nothing are happening, but the process is...