Are there any guidelines to make scripts work faster else then described above?