Improve performance when dealing with a lot of tiny images