Introduce frame_data_cleanup() and start using it