steps towards moving cache into chains for better control