minor
collision checker bugfix
use only relevant vars as cache key for slight speedup