Caching of input data to selected operation and general tidying