A design pattern for optimizations in data intensive applications using ABS and JAVA 8