a bit less consing when casting rays