Performance Improvement of Optical Algorithms on Multicore Platforms