cache association reset calculation
remove intermediate variable