Text this: Pruning and optimization of optical neural network as a binary optical trigger