TF fully optimised