cache reflections and calculations