Modify graph to always buffer input stream.
Add ehcache as a dependency to avoid OutOfMemory errors.