[embedded] Make source stencil lookup slightly more efficient

Merged Timo Koch requested to merge feature/source-stencil-improvement into master

Merge request reports