Sped up removing from memory of temporary objects