Performance improvement for non animated mask/sources