minor shadow speedup