Performance improvements to SpyFile.__getitem__.