improve take_and_cache performance
append to existing profile files