Removed the large number of copy operations that happen when the profile frame ends