slightly improve initial layout performance