.bin without source code embedded

Can you show an example of that?

Only thing that comes to mind would be Error/Debug Messages in .bin file - #6 by owenh-mgp with adding

build_flags =
   -DNDEBUG
   -DCORE_DEBUG_LEVEL=0

to the platformio.ini.