Thermal stability of Ta-pinned spin valves