ContainerFactory: rewritten caching mechanism to not use fopen [Closes #27]