Fix possible corruption of TF feature cache

Signed-off-by: Ross Allan <rallanpcl@gmail.com>