Cache + thread control